package cn.itsource.hrm;

import cn.itsource.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import sun.misc.IOUtils;

import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Map;

/**
 * @author chenyuqi
 * @version v1.0.0
 * @date 2020/5/30
 */
@FeignClient(name="PAGE-SERVICE")
public interface PageClient {
    /**
     *页面静态化接口
     * @param fileID 模板文件id
     * @param data 模板需要的数据
     * @return
     */
    @PostMapping("/staticPage")
    AjaxResult staticPage(@RequestParam("fileID") String fileID, @RequestBody Map<String,Object> data);
}
